import JDbcutils.JDBCUtil;
import org.springframework.jdbc.core.JdbcTemplate;

public class TestJdbc {
    public static void main(String[] args) {
        JdbcTemplate jdbc = new JdbcTemplate(JDBCUtil.getDatasource());
        String  sql = "update student set age = 20 where name=?";
        //4、执行修改语句
        int count = jdbc.update(sql, "ee");
        //5、打印输出
        System.out.println("修改了"+count+"信息");

    }
}
